﻿
@{
	Layout = null;
}

<!DOCTYPE html>

<html>
<head>
	<meta name="viewport" content="width=device-width" />
	<title>AddView</title>
    <link href="~/layui/css/layui.css" rel="stylesheet" />
</head>
<body>
	<div style="width:800px">
	<form class="layui-form" action="/Invoice/Add">
	  <div class="layui-form-item">
		<label class="layui-form-label">单位</label>
		<div class="layui-input-block">
		  <input type="text" name="InvoicingOffice" required  lay-verify="required" placeholder="请输入单位" autocomplete="off" class="layui-input">
		</div>
	  </div>
	  <div class="layui-form-item">
		<label class="layui-form-label">发票类型</label>
		<div class="layui-input-block">
		  <input type="radio" name="InvoiceType" value="普通发票" title="普通发票">
		  <input type="radio" name="InvoiceType" value="增值税专用发票" title="增值税专用发票">
		</div>
	  </div>
	  <div class="layui-form-item">
		<label class="layui-form-label" >发票金额</label>
		<div class="layui-input-block">
		  <input type="text" name="InvoicePrice" required  lay-verify="required" placeholder="请输入发票金额" autocomplete="off" class="layui-input">
		</div>
	  </div>
	  <div class="layui-form-item">
		<label class="layui-form-label" >税率</label>
		<div class="layui-input-block">
		  <input type="text" name="taxRate" required  lay-verify="required" placeholder="请输入税率" autocomplete="off" class="layui-input">
		</div>
	  </div>
	  <div class="layui-form-item">
		<label class="layui-form-label">开票日期</label>
		<div class="layui-input-block">
		  <input type="date" name="InvoiceTime" required  lay-verify="required" placeholder="请输入开票日期" autocomplete="off" class="layui-input">
		</div>
	  </div>
	  <div class="layui-form-item layui-form-text">
		<label class="layui-form-label">备  注</label>
		<div class="layui-input-block">
		  <textarea name="Remarks" placeholder="请输入备注" class="layui-textarea"></textarea>
		</div>
	  </div>
	  <div class="layui-form-item">
		<div class="layui-input-block">
		  <button class="layui-btn" type="submit" lay-submit >立即提交</button>
		  <button type="reset" class="layui-btn layui-btn-primary" onclick="fh()">返回</button>
		</div>
	  </div>
	</form>
</div>
	@*引用*@
	<link href="~/Content/bootstrap.css" rel="stylesheet" />
	<link href="~/layer/skin/layer.css" rel="stylesheet" />
	<script src="~/Scripts/jquery-3.4.1.min.js"></script>
	<script src="~/layui/layui.js"></script>
	
	<script>
	//Demo
	layui.use('form', function(){
	  var form = layui.form;
	  form.render();
	  //监听提交

	  form.on('submit(formDemo)', function(data){
	  });
	});
	function fh(){
		window.parent.location.reload();
		var index = parent.layer.getFrameIndex(window.name);parent.layer.close(index);
	}
	</script>
</body>
</html>
